//
//  UIDevice+HMDeviceScreen.m
//  G05爱鲜蜂
//
//  Created by 源 何 on 16/10/16.
//  Copyright © 2016年 何源. All rights reserved.
//

#import "UIDevice+HMDeviceScreen.h"

@implementation UIDevice (HMDeviceScreen)

+ (CGFloat)currentDeviceScreenMeasurement{
    
    CGFloat deviceScreen = 3.5;
    
    CGFloat ScreenHeight = [UIScreen mainScreen].bounds.size.height;
    CGFloat ScreenWidth = [UIScreen mainScreen].bounds.size.width;
    
    if ((568 == ScreenHeight && 320 == ScreenWidth) || (1136 == ScreenHeight && 640 == ScreenWidth)) {
        deviceScreen = 4.0;
    } else if ((667 == ScreenHeight && 375 == ScreenWidth) || (1334 == ScreenHeight && 750 == ScreenWidth)) {
        deviceScreen = 4.7;
    } else if ((736 == ScreenHeight && 414 == ScreenWidth) || (2208 == ScreenHeight && 1242 == ScreenWidth)) {
        deviceScreen = 5.5;
    }
    
    return deviceScreen;
}

@end
